﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <ClientWebPart Name="BookstoreOrders" Title="$Resources:AppPart_Title" Description="$Resources:AppPart_Description" DefaultWidth="300" DefaultHeight="200">

    <!-- Content element identifies the location of the page that will render inside the client web part
         Properties are referenced on the query string using the pattern _propertyName_
         Example: Src="~appWebUrl/Pages/ClientWebPart1.aspx?Property1=_property1_" -->
    <Content Type="html" Src="~remoteAppUrl/BookOrders.aspx?OrderStatus=_OrderStatus_&amp;{StandardTokens}" />

    <!-- Define properties in the Properties element.
         Remember to put Property Name on the Src attribute of the Content element above. -->
    <Properties>
      <Property Name="OrderStatus" 
                Type="enum" 
                RequiresDesignerPermission="true" 
                DefaultValue="3" 
                WebDisplayName="$Resources:AppPartProperty_WebDisplayName" 
                WebDescription="$Resources:AppPartProperty_WebDescription" 
                WebCategory="$Resources:AppPartProperty_WebCategory">
        <EnumItems>
          <EnumItem Value="1" WebDisplayName="$Resources:AppPartOrderStatus_Placed" />
          <EnumItem Value="2" WebDisplayName="$Resources:AppPartOrderStatus_Fulfilled" />
          <EnumItem Value="3" WebDisplayName="$Resources:AppPartOrderStatus_Shipped" />
        </EnumItems>
      </Property>
    </Properties>

  </ClientWebPart>
</Elements>
